import Vue from 'vue'
import VueRouter from 'vue-router'

import UIRouter from '@/views/UIRouter'
import Contacts from '@/views/Contacts'
import About from '@/views/About'
import Tyhome from '@/views/second/Tyhome'
import Tynews from '@/views/second/Tynews'
import Gwsports from '@/views/second/Gwsports'

import Blog from '@/views/three/Blog'
import Fax from '@/views/three/Fax'


Vue.use(VueRouter)

const rouster = new VueRouter({
    routes: [
        {
            path: '/',
            redirect: '/uirouter'
        },
        {
            path: '/uirouter',
            component: UIRouter
        },
        {
            path: '/about',
            component: About
        },
        {
            path: '/contacts',
            component: Contacts,
            children: [
                {
                    path:'/tyhome',
                    name:'tyhome',
                    component:Tyhome
                },
                {
                    path:'/tynews',
                    name:'tynews',
                    component:Tynews

                },
                {
                    path:'/gwsports',
                    name:'gwsports',
                    component:Gwsports,
                    children:[
                        {
                            path:'/blog',
                            component:Blog
                        },
                        {
                            path:'/fax',
                            component: Fax
                        }
                    ]
                }
            ]
        }

    ]
})
export default rouster

